package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityXfDiscountConfig;
import com.ocom.common.resp.Result;

import java.util.List;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022年7月21日09:16:03
 **/
public interface XfDiscountConfigService extends IService<EntityXfDiscountConfig> {

	List<EntityXfDiscountConfig> getConsDiscountConfig(Long companyId,Integer accountType,Integer consTimeZone);

	EntityXfDiscountConfig setConsDiscountConfig(Long comId,
												 Integer accTypeId,
												 Integer consType,
												 Integer mealNo,
												 Integer consTimes,
												 Integer consTimeZone,
												 Integer merchId,
												 EntityXfDiscountConfig entityXfDiscountConfig);

	Result setConsDiscountConfigB(Long comId, EntityXfDiscountConfig entityXfDiscountConfig);

	Boolean removeConsDiscountConfig(Long comId,
									 Integer accTypeId,
									 Integer consType,
									 Integer mealNo,
									 Integer consTimes,
									 Integer consTimeZone,
									 Integer merchId,
									 Integer discountValue);

}
